<?php

/**
 * @Entity
 * @Table(name="drink")
 */

class Drink {

	/**
	 * @Id
	 * @Column(name="name", type="string", length=50, nullable=false)
	 */
	private $name;

	/**
	 * @Column(name="img", type="string", length=255, nullable=false)
	 */
	private $img;

	/**
	 * @Column(name="desc_short", type="clob", nullable=false)
	 */
	private $descShort;

	/**
	 * @Column(name="desc_long", type="clob", nullable=false)
	 */
	private $descLong;

	/**
	 * @Column(name="price_small", nullable=false)
	 */
	private $priceSmall;

	/**
	 * @Column(name="price_medium", nullable=false)
	 */
	private $priceMedium;

	/**
	 * @Column(name="price_large", nullable=false)
	 */
	private $priceLarge;

	/**
	 * @Column(name="score_small", type="integer", length=11, nullable=false)
	 */
	private $scoreSmall;

	/**
	 * @Column(name="score_medium", type="integer", length=11, nullable=false)
	 */
	private $scoreMedium;

	/**
	 * @Column(name="score_large", type="integer", length=11, nullable=false)
	 */
	private $scoreLarge;

	/**
	 * @Column(name="text_small", type="string", length=50, nullable=false)
	 */
	private $textSmall;

	/**
	 * @Column(name="text_medium", type="string", length=50, nullable=false)
	 */
	private $textMedium;

	/**
	 * @Column(name="text_large", type="string", length=50, nullable=false)
	 */
	private $textLarge;

	function Drink($drinks){
		$this->setName($drinks['name']);
		$this->setImg($drinks['img']);
		$this->setDescShort($drinks['desc_short']);
		$this->setDescLong($drinks['desc_long']);
		$this->setTextLarge($drinks['text_large']);
		$this->setTextMedium($drinks['text_medium']);
		$this->setTextSmall($drinks['text_small']);
		$this->setScoreLarge($drinks['score_large']);
		$this->setScoreMedium($drinks['score_medium']);
		$this->setScoreSmall($drinks['score_small']);
		$this->setPriceLarge($drinks['price_large']);
		$this->setPriceMedium($drinks['price_medium']);
		$this->setPriceSmall($drinks['price_small']);
	}

	public function getName() 
	{
		return $this->name;
	} 

	public function setName($name) 
	{
		$this->name = $name;
	} 

	public function getImg() 
	{
		return $this->img;
	} 

	public function setImg($img) 
	{
		$this->img = $img;
	} 

	public function getDescShort() 
	{
		return $this->descShort;
	} 

	public function setDescShort($descShort) 
	{
		$this->descShort = $descShort;
	} 

	public function getDescLong() 
	{
		return $this->descLong;
	} 

	public function setDescLong($descLong) 
	{
		$this->descLong = $descLong;
	} 

	public function getPriceSmall() 
	{
		return $this->priceSmall;
	} 

	public function setPriceSmall($priceSmall) 
	{
		$this->priceSmall = $priceSmall;
	} 

	public function getPriceMedium() 
	{
		return $this->priceMedium;
	} 

	public function setPriceMedium($priceMedium) 
	{
		$this->priceMedium = $priceMedium;
	} 

	public function getPriceLarge() 
	{
		return $this->priceLarge;
	} 

	public function setPriceLarge($priceLarge) 
	{
		$this->priceLarge = $priceLarge;
	} 

	public function getScoreSmall() 
	{
		return $this->scoreSmall;
	} 

	public function setScoreSmall($scoreSmall) 
	{
		$this->scoreSmall = $scoreSmall;
	} 

	public function getScoreMedium() 
	{
		return $this->scoreMedium;
	} 

	public function setScoreMedium($scoreMedium) 
	{
		$this->scoreMedium = $scoreMedium;
	} 

	public function getScoreLarge() 
	{
		return $this->scoreLarge;
	} 

	public function setScoreLarge($scoreLarge) 
	{
		$this->scoreLarge = $scoreLarge;
	} 

	public function getTextSmall() 
	{
		return $this->textSmall;
	} 

	public function setTextSmall($textSmall) 
	{
		$this->textSmall = $textSmall;
	} 

	public function getTextMedium() 
	{
		return $this->textMedium;
	} 

	public function setTextMedium($textMedium) 
	{
		$this->textMedium = $textMedium;
	} 

	public function getTextLarge() 
	{
		return $this->textLarge;
	} 

	public function setTextLarge($textLarge) 
	{
		$this->textLarge = $textLarge;
	} 
	
	public static function dbGetDrinks($where){
		return dbGet("Drink", "drink", $where);
	}
}
?>